from django.conf.urls import patterns, include, url

from com.ad.sword.web import settings
from django.conf.urls.static import static
from com.ad.sword.web.common import template

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
    url(r'^$', 'com.ad.sword.web.Session.index'),
    url(r'^login', 'com.ad.sword.web.Session.login'),
    url(r'^logout', 'com.ad.sword.web.Session.logout'),
    
    url(r'^user/list', 'com.ad.sword.web.User.list'),
    url(r'^user/add', 'com.ad.sword.web.User.add'),
    url(r'^user/edit', 'com.ad.sword.web.User.edit'),
    url(r'^user/delete', 'com.ad.sword.web.User.delete'),
    
    url(r'^role/list', 'com.ad.sword.web.Role.list'),
    url(r'^role/add', 'com.ad.sword.web.Role.add'),
    url(r'^role/edit', 'com.ad.sword.web.Role.edit'),
    url(r'^role/delete', 'com.ad.sword.web.Role.delete'),
    

    url(r'^apps/main', 'com.ad.sword.web.pages.app'),
    url(r'^apps/info', 'com.ad.sword.web.HTTPMonitorTask.info'),
    url(r'^apps/list', 'com.ad.sword.web.MonitorTask.list'),
    url(r'^apps/update', 'com.ad.sword.web.HTTPMonitorTask.update'),
    url(r'^apps/delete', 'com.ad.sword.web.MonitorTask.delete'),
    
    

)+ static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
